package com.kasoft.emq.domain;


import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.Date;

/**
 * 设备实体类
 *
 */
@Data
public class Device {


		@Id
		private String id;

		@CreatedDate
		private Date createDate;

	    @LastModifiedDate
	    private Date lastModifiedDate;

	    @Indexed
	    private String deviceId;


	    private String data;

	}


